import { LineEdge,LineEdgeModel, h } from '@logicflow/core';
// import CustomLine from '@/components/CustomLine.vue';


class CustomEdgeModel extends LineEdgeModel {
  getEdgeStyle() {
    const edgeStyle = super.getEdgeStyle();
    edgeStyle.stroke = '#bfa';
    return edgeStyle;
  }
}

class CustomEdgeView extends LineEdge {
  getEdge() {
    return h( 'h1',
    { className: 'greeting' },
    '你好')
    // return h('div',{},
    //   '你好'
    // );
  }
}

export default {
  type: 'CustomEdge',
  view: CustomEdgeView,
  model: CustomEdgeModel,
};